//
//  DKFileTaskQueue.h
//  Whistle
//
//  Created by ZhangAo on 15/8/3.
//  Copyright (c) 2015年 BookSir. All rights reserved.
//

#import "DKObserver.h"
#import "DKFileBaseTask.h"

@interface DKFileTaskQueue : DKObserver

@property (nonatomic, readonly) NSArray<DKFileBaseTask *> *tasks;

- (void)addTask:(DKFileBaseTask *)task forKey:(NSString *)key;

- (BOOL)isDownloadingForKey:(NSString *)key;

- (BOOL)isUploadingForKey:(NSString *)key;

- (DKFileBaseTask *)taskForKey:(NSString *)key;

@end
